// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Element from 'element-ui';
import Axios from "axios";
import global_variable from "./components/global_variable";
import $ from 'jquery';
import Viewer from "v-viewer";
import "viewerjs/dist/viewer.css"
import VueAMap from 'vue-amap';

Vue.prototype.GLOBAL = global_variable
Vue.prototype.$axios = Axios;
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Element, {size: 'small', zIndex: 3000});
Vue.use(Viewer)
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: 'bf336a8142c747a42b4ed61967329cf3',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  v: '1.4.4'
});
Viewer.setDefaults({
  defaultOptions: {
    zIndex: 9999
  },
  Options: {
    "inline": true,
    "button": true,
    "navbar": true,
    "title": true,
    "toolbar": true,
    "tooltip": true,
    "movable": true,
    "zoomable": true,
    "rotatable": true,
    "scalable": true,
    "transition": true,
    "fullscreen": true,
    "keyboard": true,
    "url": "data-source"
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})

